export default {
  data() {
    return {
      shopid: '', //店铺id
      carid: '', //车id
      sAmount: '', //人数
      colorlist: [], //颜色
      shoplist: {}, //店铺list
      modify: '修改',
      modifycolor: '不限',
      colorpopup: false, //颜色弹框
      mobiles: '', //手机号
      multiArray: [
        [],
        ['08:00:00', '09:00:00', '10:00:00', '11:00:00', '12:00:00', '13:00:00', '14:00:00', '15:00:00', '16:00:00',
          '17:00:00', '18:00:00'
        ],
      ], //日期时间集合
      multiIndex: [0, 0], //弹框显示两组数据
      datelist: [], //所有日期list
      xzdatatime: '', //传给后台日期
      htdatatime: '', //传给后台日期时分秒
      ymdatatime: '', //页面显示日期
      showdatatime: false, //时间弹框
      wgColorList: [], //外观颜色list
      nsColorList: [], //内试颜色list
      xedColorList: {
        outerColour: {
          colorCoding: '',
          color: ''
        },
        inColour: {
          colorCoding: '',
          color: '',
          neiColor: [{}]
        }
      }, //选择的颜色集合
      showPopup: false,
      lon: '0',
      lat: '0',

    }
  },

  onLoad(typess) {
    this.carid = Number(typess.carid)
    this.lon = JSON.stringify(this.$store.state.lon)
    this.lat = JSON.stringify(this.$store.state.lat)
    this.GetStorePageList()
  },

  methods: {
    //获取预约店铺信息
    async GetStorePageList(type) {
      try {
        const res = await this.$api.commodity.GetStorePageList({
          pageIndex: 1,
          pageSize: 10,
          carId: this.carid,
          lat: this.lat,
          lon: this.lon
        })
        this.shoplist = res.data.list
        this.mobiles = res.data.phone
      } catch (err) {}
    },
    //跳转列表
    xuanzemendi(items) {
      //存储地址-多选
      uni.$emit('Storeid', {
        Storeid: items.storeId
      })
      uni.navigateBack({})
    },
    mobileclick(e) {
      uni.makePhoneCall({
        phoneNumber: e
      })
    }
  }
}
